package com.smart.car.resource.controller;

import com.smart.car.common.res.bean.ResponseResult;
import com.smart.car.common.res.exception.BusinessException;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 闸机资源控制类，已同样的方式完成对闸机的初始化。
 * 请参考StartUPCommandLineRunner类
 *
 * @author: zoutao
 * @date: 2021-04-20
 */
@Api(tags = "闸机资源模块")
@Slf4j
@RestController
@RequestMapping("brake")
public class ResourceBrakeController {

    @GetMapping("/test")
    public String test() {
        log.info("hello-江湖一点雨");
        return "hello-world-江湖一点雨";
    }


//    @Autowired
//    private ResourceBrakeService messageInfoService;
//
//    @RequestMapping("/list")
//    public List<MessageInfo> list() {
//        List<MessageInfo> messages = messageInfoService.list();
//        log.debug("query member list = " + messages);
//        return messages;
//    }


}
